package com.butterfly.hotkey.core.constant;


/**
 * @author butterfly
 */
public interface Constants {

    String WORKER = "hotkey-worker";

    String HOTKEY = "hotkey";

    String CLIENT = "hotkey-client";

    String DASHBOARD = "hotkey-dashboard";

    /**
     * 魔法值
     * 当worker检测到的hotkey推送过来后，先标记为hot，之后业务自行将value进行保存
     */
    String MAGIC_NUMBER = "0x12fcf76";

    /**
     * netty的分隔符
     */
    String DELIMITER = "$$";

    /**
     * 单次包最大4M
     */
    int MAX_LENGTH = 4 * 1024 * 1024;

}
